import Vue from 'vue'
import Router from 'vue-router'
<<<<<<< HEAD
import Recommend from 'components/recommend/recommend'
import Singer from 'components/singer/singer'
import Rank from 'components/rank/rank'
import Search from 'components/search/search'
import SingerDetail from 'components/singer-detail/singer-detail'
import RankList from 'components/rank-list/rank-list'
// import Header from 'components/header/header'
=======
import Recommend from "components/recommend/recommend"
import Singer from "components/singer/singer"
import Rank from "components/rank/rank"
import Search from "components/search/search"
import SingerDetail from "components/singer-detail/singer-detail"
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a

Vue.use(Router)

export default new Router({
<<<<<<< HEAD
  routes: [{
  	path:'/',
  	redirect:'/recommend'
  },
  {
  	path:'/recommend',
  	component:Recommend
  },
  {
  	path:'/singer',
  	component:Singer,
    children:[{
      path:':id',
      component:SingerDetail
    }]
  },
  {
  	path:'/rank',
  	component:Rank,
    children:[{
      path:':id',
      component:RankList
    }]
  },
  {
  	path:'/search',
  	component:Search
  }]
=======
  routes: [
  	{
  		path:"/",
  		redirect: "/recommend"
  	},
  	{
  		path:"/recommend",
  		component: Recommend
  	},
    {
      	path: '/singer',
      	component: Singer,
        children:[
            {
                path:':id',
                component:SingerDetail
            }
        ]
    },
    {
      	path: '/rank',
      	component: Rank
    },
    {
      	path: '/search',
      	component: Search
    }
  ]
>>>>>>> 2f2681559102dd200f119afb607054cf37b8104a
})
